-- GENERATED SPELL FOR [Pygmy Venom Web Spider] --


function spell0_539(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_539', 30000, 1)
end

function Sorts_539(pUnit, Event)
local choix_sorts_539 = math.random(0, 0)
if choix_sorts_539 == 0 then
pUnit:RegisterEvent('spell0_539', 1, 1)
end
end

function mob539_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_539', math.random(1500, 3000), 1)
end

function mob539_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob539_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob539_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(539, 1, 'mob539_Action')
RegisterUnitEvent(539, 2, 'mob539_Leave')
RegisterUnitEvent(539, 3, 'mob539_Kill')
RegisterUnitEvent(539, 4, 'mob539_Die')
